import {
	getCustomNav
} from '@/util/util.js'
export default {
	methods: {
		navigate(url) {
			if (url) uni.navigateTo({
				url
			});
		},
		back() {
			uni.navigateBack({
				fail() {
					uni.switchTab({
						url: '/pages/index/index'
					})
				}
			})
		},
		call(phone) {
			uni.makePhoneCall({
				phoneNumber: phone
			})
		},
	},
	computed: {
		mt() {
			let custom = getCustomNav();
			return custom.statusBar + custom.nvaMartom + custom.navHeight + 40 + 'rpx';
		}
	},
	data() {
		return {
			cloudStorage: 'https://job-supermarket-1306862033.cos.ap-chengdu.myqcloud.com/uniapp/',
		}
	},
}